using UnityEngine;

public class CheckpointTrigger : MonoBehaviour
{
	public CheckpointController CheckpointController;

	private void OnTriggerEnter(Collider other)
	{
		if (other.tag == "Player" && CheckpointController.CheckCheckpoint(base.gameObject))
		{
			CheckpointController.NextCheckpoint(base.gameObject);
		}
	}
}
